package com.artist.mapper;

import com.artist.entity.TbUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<TbUser> {
    //用户登陆验证

    @Select("select * from tb_user where u_name=#{uName} and u_password=#{uPassword}")
    TbUser userLogin(@Param("uName") String uName,
                     @Param("uPassword") String uPassword);

}
